package com.example.yian.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@TableName("security_risks")
@Data // This annotation generates all getters, setters, toString, equals, and hashCode methods.
@AllArgsConstructor // Generates a constructor with all arguments.
@NoArgsConstructor // Generates a no-args constructor.
public class SecurityRisk {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    private String image;

    @TableField("chat_id")
    private String chatId;

    public String getImage() {
        return image;
    }
    public String GetChatId() {
        return chatId;
    }

    @TableField("text_id")
    private String textId;

    public String getTextId() {
        return textId;
    }

    @TableField("supplement_contents")
    private String supplementContents;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Timestamp createdAt;

    public Timestamp GetUpdatedAt() {
        return updatedAt;
    }

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Timestamp updatedAt;

    public Timestamp GetCreatedAt() {
        return createdAt;
    }

    public Long GetId() {
        return id;
    }

    public Long GetUserId() { return userId;}

    public String GetSupplementContents() {
        return supplementContents;
    }
}
